<?php
    header("Content-type:text/html;charset=utf-8");
	$title=$_POST[title];
	$content=$_POST[content];
	$createtime=date("Y-m-d H:i:s");
	$link=mysql_connect("localhost","root","root") or die("数据库无法连接成功");
	mysql_select_db("db_ee",$link) or die("数据库访问错误");
	mysql_query("set names utf8");
	$sql=mysql_query("INSERT INTO mk ( `title`, `desc`) VALUES ( '$title', '$content')");
	echo "<script> alert('公告添加成功');";
	//header("location:add.php");
	//mysql_free_result($sql);
	//mysql_close($link);
	

?>